import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ReportComponent } from './report.component';

const routes: Routes = [
    {
        path: '',
        component: ReportComponent,
        children: [
            {
                path: 'mf', loadChildren: './mf/mf.module#MFModule',
                data: { title: '设备故障指标', module: 'ptpmc/report/mf', power: 'SHOW' }
            },
            {
                path: 'mfl', loadChildren: './mfl/mfl.module#MFLineModule',
                data: { title: '整线故障分析', module: 'ptpmc/report/mfl', power: 'SHOW' }
            },
            {
                path: 'mfa', loadChildren: './mfa/mfa.module#MFAModule',
                data: { title: '设备故障代码分析', module: 'ptpmc/report/mfa', power: 'SHOW' }
            },
            {
                path: 'tip', loadChildren: './tip/tip.module#TIPModule',
                data: { title: 'TIP分析', module: 'ptpmc/report/tip', power: 'SHOW' }
            },
            {
                path: 'saa', loadChildren: './saa/saa.module#SAAModule',
                data: { title: 'SAA分析', module: 'ptpmc/report/saa', power: 'SHOW' }
            },
            {
                path: 'sb', loadChildren: './sb/sb.module#SBModule',
                data: { title: '待堵料分析', module: 'ptpmc/report/sb', power: 'SHOW' }
            },
            {
                path: 'cts', loadChildren: './cts/cts.module#CTSModule',
                data: { title: 'CT统计分析', module: 'ptpmc/report/cts', power: 'SHOW' }
            },
            {
                path: 'tct', loadChildren: './tct/tct.module#TCTModule',
                data: { title: '分型号节拍分析', module: 'ptpmc/report/tct', power: 'SHOW' }
            },
            {
                path: 'andon', loadChildren: './andon/andon.module#AndonModule',
                data: { title: 'Andon分析', module: 'ptpmc/report/andon', power: 'SHOW' }
            },
            {
                path: 'ctd', loadChildren: './ctd/cyclertime.module#CyclerTimeModule',
                data: { title: 'CT明细', module: 'ptpmc/report/ctd', power: 'SHOW' }
            },
            {
                path: 'phcnt', loadChildren: './phcnt/phcnt.module#PhCNtModule',
                data: { title: '生产小时产量', module: 'ptpmc/report/phcnt', power: 'SHOW' }
            },
            {
                path: 'tipcalc', loadChildren: './tipcalc/tipcalc.module#TipCalcModule',
                data: { title: 'tipcalc', module: 'ptpmc/report/tipcalc', power: 'SHOW' }
            },
            {
                path: 'pun', loadChildren: './pun/pun.module#PunModule',
                data: { title: 'PUN', module: 'ptpmc/report/pun', power: 'SHOW' }
            },
            {
                path: 'fw', loadChildren: './fw/fw.module#FaultWorldModule',
                data: { title: '故障代码', module: 'ptpmc/report/fw', power: 'SHOW' }
            },
            {
                path: 'tipfw', loadChildren: './tipfw/tipfw.module#TipFaultWorldModule',
                data: { title: '故障状态', module: 'ptpmc/report/tipfw', power: 'SHOW' }
            },
            {
                path: 'cmm', loadChildren: './cmm/cmm.module#CmmModule',
                data: { title: 'CMM状态分析', module: 'ptpmc/report/cmm', power: 'SHOW' }
            },
            {
                path: 'ddd', loadChildren: './ddd/ddd.module#DddModule',
                data: { title: '设备故障停机明细', module: 'ptpmc/report/ddd', power: 'SHOW' }
            },
            {
                path: 'phcntd', loadChildren: './phcntd/phcntd.module#PhCNTDModule',
                data: { title: '产量OEE', module: 'ptpmc/report/phcntd', power: 'SHOW' }
            },
            {
                path: 'wp', loadChildren: './wp/wp.module#WPModule',
                data: { title: 'Working Pace', module: 'ptpmc/report/wp', power: 'SHOW' }
            },
            {
                path: 'toolReport', loadChildren: './toolReport/toolReport.module#ToolReportModule',
                data: { title: '刀具大数据查看', module: 'ptpmc/report/toolReport', power: 'SHOW' }
            },
            {
                path: 'assist', loadChildren: './assist/assist.module#AssistModule',
                data: { title: 'Andon呼叫', module: 'ptpmc/report/assist', power: 'SHOW' }
            },
            {
                path: 'calculation', loadChildren: './calculation/calculation.module#CalculationModule',
                data: { title: 'calculation', module: 'ptpmc/report/calculation', power: 'SHOW' }
            },
            {
                path: 'sc', loadChildren: './sc/sc.module#ScModule',
                data: { title: '全业务链生产线查询', module: 'ptpmc/report/sc', power: 'SHOW' }
            },
            {
                path: 'gty', loadChildren: './gantry/gantry.module#GantryModule',
                data: { title: '机械手', module: 'ptpmc/report/gty', power: 'SHOW' }
            },
            {
                path: 'moee', loadChildren: './moee/moee.module#MoeeModule',
                data: { title: '月度设备有效利用率', module: 'ptpmc/report/moee', power: 'SHOW' }
            },
            {
                path: 'fta', loadChildren: './ftp/ftp.module#FtpModule',
                data: { title: 'FTA指标', module: 'ptpmc/report/fta', power: 'SHOW' }
            },
            {
                path: 'wfta', loadChildren: './w-ftp/w-ftp.module#WFtpModule',
                data: { title: '武汉FTA指标', module: 'ptpmc/report/wfta', power: 'SHOW' }
            },
            {
                path: 'woee', loadChildren: './w-oee/w-oee.module#WOEEModule',
                data: { title: '生产周报', module: 'ptpmc/report/woee', power: 'SHOW' }
            },
            {
                path: 'wct', loadChildren: './wct/wct.module#WCTModule',
                data: { title: '武汉平均CT', module: 'ptpmc/report/wct', power: 'SHOW' }
            },
            {
                path: 'mpu', loadChildren: './mpu/mpu.module#MPUModule',
                data: { title: 'MPU', module: 'ptpmc/report/mpu', power: 'SHOW' }
            }
            ,
            {
                path: 'sat', loadChildren: './sat/sat.module#SATModule',
                data: { title: 'SAT', module: 'ptpmc/report/sat', power: 'SHOW' }
            } ,
            {
                path: 'startup', loadChildren: './startup/startup.module#StartUpModule',
                data: { title: '设备开动率', module: 'ptpmc/report/startup', power: 'SHOW' }
            },
            {
                path: 'tipnew', loadChildren: './tipnew/tipnew.module#TipnewModule',
                data: { title: '东岳tip', module: 'ptpmc/report/tipnew', power: 'SHOW' }
            },
            {
                path: 'logdown', loadChildren: './logdown/logdown.module#LogDownModule',
                data: { title: 'LOGDOWN', module: 'ptpmc/report/logdown', power: 'SHOW' }
            },
            {
                path: 'toolChange', loadChildren: './toolChange/toolChange.module#ToolChangeModule',
                data: { title: '东岳换刀记录', module: 'ptpmc/report/toolChange', power: 'SHOW' }
            },
            {
                path: 'toolchangelog', loadChildren: './toolchangelog/toolchangelog.module#ToolChangeLogModule',
                data: { title: 'ToolChange(Pocket)', module: 'ptpmc/report/toolchangelog', power: 'SHOW' }
            },
            {
                path: 'plane', loadChildren: './plane/plane.module#PlaneModule',
                data: { title: '设备停机看板', module: 'ptpmc/report/plane', power: 'SHOW' }
            },
            {
                path: 'hourlydowntime', loadChildren: './hourlydowntime/hourlydowntime.module#HourlydowntimeModule',
                data: { title: '小时停机报表及柱状图', module: 'ptpmc/report/hourlydowntime', power: 'SHOW' }
            },
            {
                path: 'productiontarget', loadChildren: './productiontarget/productiontarget.module#ProductiontargetModule',
                data: { title: '生产计划产量设置', module: 'ptpmc/report/productiontarget', power: 'SHOW' }
            },
            {
                path: 'cylinder-assembly', loadChildren: './cylinder-assembly/cylinder-assembly.module#CylinderAssemblyModule',
                data: { title: '缸盖分装线', module: 'ptpmc/report/cylinder-assembly', power: 'SHOW' }
            },
            {
                // tslint:disable-next-line:max-line-length
                path: 'camshaft-cover-assembly', loadChildren: './camshaft-cover-assembly/camshaft-cover-assembly.module#CamshaftCoverAssemblyModule',
                data: { title: '凸轮轴罩盖总成', module: 'ptpmc/report/camshaft-cover-assembly', power: 'SHOW' }
            },
            {
                // tslint:disable-next-line:max-line-length
                path: 'lower-cylinder-assembly', loadChildren: './lower-cylinder-assembly/lower-cylinder-assembly.module#LowerCylinderAssemblyModule',
                data: { title: '下缸体拓展总成', module: 'ptpmc/report/lower-cylinder-assembly', power: 'SHOW' }
            },
            {
                // tslint:disable-next-line:max-line-length
                path: 'cylinder-head-machining', loadChildren: './cylinder-head-machining/cylinder-head-machining.module#CylinderHeadMachiningModule',
                data: { title: '缸盖机加工', module: 'ptpmc/report/cylinder-head-machining', power: 'SHOW' }
            },
            {
                // tslint:disable-next-line:max-line-length
                path: 'cylinder-body-machining', loadChildren: './cylinder-body-machining/cylinder-body-machining.module#CylinderBodyMachiningModule',
                data: { title: '缸体机加工', module: 'ptpmc/report/cylinder-body-machining', power: 'SHOW' }
            },
            {
                // tslint:disable-next-line:max-line-length
                path: 'crankshaft-machining', loadChildren: './crankshaft-machining/crankshaft-machining.module#CrankshaftMachiningModule',
                data: { title: '曲轴机加工', module: 'ptpmc/report/crankshaft-machining', power: 'SHOW' }
            },
            {
                // tslint:disable-next-line:max-line-length
                path: 'main-assembly', loadChildren: './main-assembly/main-assembly.module#MainAssemblyModule',
                data: { title: '主装配线', module: 'ptpmc/report/main-assembly', power: 'SHOW' }
            },
            {
                // tslint:disable-next-line:max-line-length
                path: 'email-task-config', loadChildren: './email-task-config/email-task-config.module#EmailTaskConfigModule',
                data: { title: '邮件定时任务配置', module: 'ptpmc/report/email-task-config', power: 'SHOW' }
            }
            // email-task-config
        ]
    },
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class ReportRoutingModule { }
